<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function getData() {
            const xhr = new XMLHttpRequest();
            xhr.open('GET', 'hhtps://mock.mengxuegu.com/mock/66585c4db462b81cb3946d3e/', true)
            xhr.send();
            xhr.onreadystatechange = function () {
                if (xhr.readyState == 4 && xhr.status == 200) {
                    console.log(xhr.responseText);

                }
            }
        }
        async function foo(parms) {
            let data = await getData()
            console.log(data);

        }
        foo()


    </script>
</body>

</html>